package ar.edu.itba.it.cg.grupo01.impl;

import javax.vecmath.Point3d;
import javax.vecmath.Tuple3d;
import javax.vecmath.Vector3d;

import ar.edu.itba.it.cg.grupo01.api.Ray;

public class CameraRay implements Ray {

	private final Ray ray;
	private final int x;
	private final int y;
	
	public CameraRay(Ray ray, int x, int y) {
		this.ray = ray;
		this.x = x;
		this.y = y;
	}

	@Override
	public Point3d calculatePoint(double scalar) {
		return ray.calculatePoint(scalar);
	}

	@Override
	public Boolean contains(Tuple3d point) {
		return ray.contains(point);
	}

	@Override
	public Vector3d getDirection() {
		return ray.getDirection();
	}

	@Override
	public Point3d getOrigin() {
		return ray.getOrigin();
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}
	
}
